package com.sumainfor.pc.market.service;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.dao.TcmktHousingSysUserIdMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 根据房源表爱好查询服务管家编号
 * <p>
 *
 * @author: zhoucong
 * @create: 2019-07-02 11:05
 **/
@Service
public class TcmktHousingSysUserIdService implements Serializable {

    @Autowired
    TcmktHousingSysUserIdMapper tcmktHousingSysUserIdMapper;

    /**
     * 根据房源编号查询服务管家编号
     *
     * @return
     * @author zhoucong
     * @data 2019/7/2
     * @Param
     */
    public JsonResult getTcmktHousSysUserId(Map<String, Object> params) {
        JsonResult result = new JsonResult();
        Map<String, Object> zczsMap = new HashMap<>();
        zczsMap.put("SysUserIdCount", tcmktHousingSysUserIdMapper.getTcmktHousSysUserId(params));
        return result.put(zczsMap);
    }


    /**
     * 获取这个房源的归属公司编号
     *
     * @param houId
     * @return
     */
    public Integer getCorId(String houId) {
        return tcmktHousingSysUserIdMapper.getCorId(houId);
    }


}
